import 'package:base_flutter/base_flutter.dart';
import 'package:ls_work/model/medicine_advice_model.dart';
import 'package:ls_work/net/response/medicine_advice/drug_list_data.dart';
class ChooseMedicineViewModel extends BaseListViewModel<DrugListData>{
  ChooseMedicineViewModel(super.context);

  var model = MedicineAdviceModel();

  var searchName = "";

  @override
  Future<List<DrugListData>> requestListData() {
    return model.drugListData(commonNameLike: searchName);
  }

  @override
  void onCreated() {
    super.onCreated();
    requestRefresh();
  }

}

